﻿@{
    var user = ViewBag.UserSession as SelfManagement.Web.Models.Session.UserSession;
}
<ul class="nav navbar-nav pull-right">
    <li class="devider">
        &nbsp;
    </li>
    <!-- BEGIN USER LOGIN DROPDOWN -->
    <li class="dropdown user">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
            <img alt="" src="@Url.Content(user.UserEntity.UserFace ?? (ViewBag.DefaultUserFaceImagePath as string))" width="29" height="29"/>
            <span class="username">@user.UserEntity.TrueName</span>
            <i class="fa fa-angle-down"></i>
        </a>
        <ul class="dropdown-menu">
            <li>
                <a href="@Url.Action("MyProfile", "Account")"><i class="fa fa-user"></i>我的资料</a>
            </li>
            <li class="divider"></li>
            <li>
                <a href="@Url.Action("Logout", "Account")"><i class="fa fa-key"></i>退出</a>
            </li>
        </ul>
    </li>
    <!-- END USER LOGIN DROPDOWN -->
</ul>